package com.pengheng.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mybatisPlus配置
 *
 * @author pengheng
 * @date 2021年8月4日16:04:42
 **/
@Configuration
@MapperScan("com.pengheng.mapper")
public class MyBatisConfig {

    /**
     * 自动填充
     *
     * @return
     */
    @Bean
    public AutoFillObjectHandler autoFillObjectHandler() {
        return new AutoFillObjectHandler();
    }
}
